package com.wu.service;

import java.util.Map;

/**
 * @author: 吴磊
 * @program: blog
 * @create: 2021-05-07 13:58
 */
public interface CollectArticleService {

    /**
     * 通过用户Id查询收藏的文章
     *
     * @param userId
     * @return
     */
    Map<String, Object> getCollectArticleByUserId(String userId, Integer curPage);

    /**
     * 添加收藏或取消收藏
     *
     * @param articleId
     * @return
     */
    boolean addOrDeleteCollect(String articleId);
}
